package com.turtle.extend;

import com.turtle.dto.UserDto;
import com.turtle.dto.UserUpdateInfoParam;
import com.turtle.entity.sql.User;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

/**
 * @author lijiayu
 * @date 2020/6/24
 * @description
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserConverter{
    User toEntity(UserUpdateInfoParam param);

    UserDto toDto(User user);
}
